.class Llt/farmis/libraries/externalgps/nmea/NmeaParser$GGA;
.super Ljava/lang/Object;
.source "NmeaParser.java"

# interfaces
.implements Llt/farmis/libraries/externalgps/nmea/NmeaParser$SentenceParser;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/farmis/libraries/externalgps/nmea/NmeaParser;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "GGA"
.end annotation


# instance fields
.field final synthetic this$0:Llt/farmis/libraries/externalgps/nmea/NmeaParser;


# direct methods
.method constructor <init>(Llt/farmis/libraries/externalgps/nmea/NmeaParser;)V
    .locals 0

    .line 52
    iput-object p1, p0, Llt/farmis/libraries/externalgps/nmea/NmeaParser$GGA;->this$0:Llt/farmis/libraries/externalgps/nmea/NmeaParser;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public parse([Ljava/lang/String;Llt/farmis/libraries/externalgps/GPSLocation;)Z
    .locals 5

    const/4 v0, 0x1

    .line 54
    aget-object v1, p1, v0

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    const/4 v3, 0x0

    if-eqz v1, :cond_0

    const/4 v1, 0x0

    goto :goto_0

    :cond_0
    aget-object v1, p1, v0

    invoke-static {v1}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->parseFloat(Ljava/lang/String;)F

    move-result v1

    :goto_0
    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->time:F

    const/4 v1, 0x2

    .line 55
    aget-object v1, p1, v1

    const/4 v4, 0x3

    aget-object v4, p1, v4

    invoke-static {v1, v4}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->Latitude2Decimal(Ljava/lang/String;Ljava/lang/String;)F

    move-result v1

    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->lat:F

    const/4 v1, 0x4

    .line 56
    aget-object v1, p1, v1

    const/4 v4, 0x5

    aget-object v4, p1, v4

    invoke-static {v1, v4}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->Longitude2Decimal(Ljava/lang/String;Ljava/lang/String;)F

    move-result v1

    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->lon:F

    const/4 v1, 0x6

    .line 57
    aget-object v1, p1, v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->quality:I

    const/4 v1, 0x7

    .line 58
    aget-object v1, p1, v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->sattelites:I

    const/16 v1, 0x8

    .line 59
    aget-object v4, p1, v1

    invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    const/4 v1, 0x0

    goto :goto_1

    :cond_1
    aget-object v1, p1, v1

    invoke-static {v1}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->parseFloat(Ljava/lang/String;)F

    move-result v1

    :goto_1
    iput v1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->dilution:F

    const/16 v1, 0x9

    .line 60
    aget-object v4, p1, v1

    invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    goto :goto_2

    :cond_2
    aget-object p1, p1, v1

    invoke-static {p1}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->parseFloat(Ljava/lang/String;)F

    move-result v3

    :goto_2
    iput v3, p2, Llt/farmis/libraries/externalgps/GPSLocation;->altitude:F

    const-string p1, "GGA"

    .line 61
    iput-object p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->messageType:Ljava/lang/String;

    return v0
.end method
